Note that in order to reproduce all results in the paper, Step1.R through Step7.R must be run in R. All files should be in the same directory.

Description of each code file
Step1.R Extracts variables from CSES and other datasets
Step2.R Creates variables for analyses
Step3.R Creates Figure 1
Step4.R Creates Table 2
Step5.R Creates Tables 3 and 4
Step6.R Creates Tables 5 and 6
Step7.R Creates Tables 7 and 8
italycorrection.R Contains corrections to CSES data for Italy (from CSES). Applied in Step1.R

Description of raw data files
cabinet.csv Cabinet data for modules 1-3
cabinet_cses4.csv Cabinet data for module 4
cm1_data.txt CSES module 1 data
cses2_rawdata.txt module 2 data
cses3.dat module 3 data
cses3.dta module 3 Stata dataset (contains some additional variables)
cses4.dat module 4 data
cses4.dta module 4 stata dataset (contains some additional variables)
fhdata.csv Freedom House data
regimes.csv Data on regimes for modules 1-3
regimes2.csv Data on regime for module 4
wbdata.csv Contains data from World Bank

Note that the additional variables in the Stata datasets above are not necessary to reproduce the results in the paper. They contain some extra variables which some users may be interested in. They are necessary to run Step 1 though. Therefore, we have included them.